package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单品类表 t_order_category
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
public class OrderCategory extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long id;
	/** 订单ID */
	private Long orderId;
	/** 品类ID */
	private Long categoryId;
	/** 名称 */
	private String name;
	/** 重量，单位kg */
	private Integer weight;
	/** 状态（0正常 1停用） */
	private String status;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setOrderId(Long orderId) 
	{
		this.orderId = orderId;
	}

	public Long getOrderId() 
	{
		return orderId;
	}
	public void setCategoryId(Long categoryId) 
	{
		this.categoryId = categoryId;
	}

	public Long getCategoryId() 
	{
		return categoryId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setWeight(Integer weight) 
	{
		this.weight = weight;
	}

	public Integer getWeight() 
	{
		return weight;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("categoryId", getCategoryId())
            .append("name", getName())
            .append("weight", getWeight())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
